what was the main cause of the spanish american war